package libra.servletPlugins.unAnno;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyListener implements ServletContextListener  {
    @Override
    public void contextInitialized(ServletContextEvent contextEvent) {
    	ServletContext sc = contextEvent.getServletContext();
    	String realpath = sc.getRealPath("/");
    	System.out.println( "DubboConsumerSpringMVC.MyListener项目启动:"+realpath );
    }

    @Override
    public void contextDestroyed(ServletContextEvent contextEvent) {
    	 System.out.println( "DubboConsumerSpringMVC.MyListener项目停止" );
    }
}